package cn.jwtool.jwcache;

import cn.jwtool.jwcache.buffer.data.JwCatchTemplate;
import cn.jwtool.jwcache.thread.Timer;

import java.util.concurrent.TimeUnit;

/**
 * @author : willian fu
 * @version : 1.0
 */
@Timer
public class TimingTask {

    /**
     * jwedis键过期定时扫描策略
     */
    @Timer(value = 300, type = true, unit = TimeUnit.MILLISECONDS)
    public static void expiredKeyAutoScan(){
        System.out.println("扫描。。。。。。");
        JwCatchTemplate.getInstance().scanExpiredKeys();
    }



}
